<include file="Public:header" />
<include file="Public:leftside" />
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs"> 
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i> <a href="/">首页</a> </li>
			<li class="active">基础设置</li>
		</ul>
	</div>
	<section class="scrollable wrapper">
	<div class="row panel-body" style="margin-top: 10px;">
		<a href="{:U('Platform/webinfo')}" class="btn btn-sm btn-default">网站设置</a>
		<a href="{:U('Platform/webpay')}" class="btn btn-sm btn-default">支付配置</a>
		<a href="{:U('Platform/weblogin')}" class="btn btn-sm btn-primary">第三方登录</a>
		<a href="{:U('Platform/webphone')}" class="btn btn-sm btn-default">短信配置</a>
			<a href="{:U('Platform/webqita')}" class="btn btn-sm btn-default">其他设置</a>
	</div>
	<section class="panel-default m-b-sm">
		<div class="alert alert-info">
			<p>
           	 <i class="fa fa-hand-o-right m-r-xs"></i><strong>操作提示</strong>
            </p>
			<p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>第三方登录配置。</p>
		</div>
	</section>
	
	<section class="panel panel-default">
                  <header class="panel-heading text-right bg-light">
                    <ul class="nav nav-tabs pull-left">
                      <li class="active"><a href="#qq" data-toggle="tab">QQ登录</a></li>
                      <li class=""><a href="#weixin" data-toggle="tab">微信登录</a></li>
					   <li class=""><a href="#weibo" data-toggle="tab">微博登录</a></li>
                    </ul>
                    <span class="hidden-sm">第三方登录</span> </header>
                  <div class="panel-body">
                    <div class="tab-content">
                      <div class="tab-pane fade  active in" id="qq">
							<div class="panel-body">
							<form class="form form-horizontal" action="{:U('Platform/webSave')}" method="post" role="form">
							<input type="hidden" name="option_name" value="qq_login" />
									<div class="form-group">
										<label class="col-sm-2 control-label">是否启用</label>
										<div class="col-md-4">
											<label class="switch">
												<input type="checkbox" name="qq_is_use" <?php if($q_config['qq_is_use']){ ?>checked="" <?php } ?>>
												<span></span>
											</label>
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">APP_KEY</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="QQ_APP_KEY" value="{$q_config.QQ_APP_KEY}">
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">APP_SECRET</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="QQ_APP_SECRET" value="{$q_config.QQ_APP_SECRET}">
										</div>
									</div>
						           
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<div class="col-sm-4 col-sm-offset-2">
											<button class="btn btn-info formSubmit" id="form" type="button"><i class="icon-ok bigger-110"></i>提交</button>
										</div>
									</div>
								</form>
							</div>
                      </div>
                      <div class="tab-pane fade" id="weixin">
							<div class="panel-body">
							<form class="form1 form-horizontal" action="{:U('Platform/webSave')}" method="post" role="form">
							<input type="hidden" name="option_name" value="wx_login" />
									<div class="form-group">
										<label class="col-sm-2 control-label">是否启用</label>
										<div class="col-md-4">
											<label class="switch">
												<input type="checkbox" name="weixin_is_use" <?php if($w_config['weixin_is_use']){ ?>checked="" <?php } ?>>
												<span></span>
											</label>
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">APP_KEY</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="WEIXIN_APP_KEY" value="{$w_config.WEIXIN_APP_KEY}">
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">APP_SECRET</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="WEIXIN_APP_SECRET" value="{$w_config.WEIXIN_APP_SECRET}">
										</div>
									</div>
						            <div class="line line-dashed line-lg pull-in"></div>
						            
									<div class="form-group">
										<div class="col-sm-4 col-sm-offset-2">
											<button class="btn btn-info formSubmit" id="form1" type="button"><i class="icon-ok bigger-110"></i>提交</button>
										</div>
									</div>
								</form>
							</div>
                      </div>
					   <div class="tab-pane fade" id="weibo">
							<div class="panel-body">
							<form class="form2 form-horizontal" action="{:U('Platform/webSave')}" method="post" role="form">
							<input type="hidden" name="option_name" value="wb_login" />
									<div class="form-group">
										<label class="col-sm-2 control-label">是否启用</label>
										<div class="col-md-4">
											<label class="switch">
												<input type="checkbox" name="weibo_is_use" <?php if($b_config['weibo_is_use']){ ?>checked="" <?php } ?>>
												<span></span>
											</label>
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">APP_KEY</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="WEIBO_APP_KEY" value="{$b_config.WEIBO_APP_KEY}">
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">APP_SECRET</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="WEIBO_APP_SECRET" value="{$b_config.WEIBO_APP_SECRET}">
										</div>
									</div>
						            <div class="line line-dashed line-lg pull-in"></div>
						            <div class="form-group">
										<label class="col-sm-2 control-label">pc回调地址</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="WEIBO_PC_URL" value="{$b_config.WEIBO_PC_URL}">
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
						            <div class="form-group">
										<label class="col-sm-2 control-label">手机回调地址</label>
										<div class="col-md-4">
											<input type="text" class="form-control" name="WEIBO_MOBLIE_URL" value="{$b_config.WEIBO_MOBLIE_URL}">
										</div>
									</div>
									<div class="form-group">
										<div class="col-sm-4 col-sm-offset-2">
											<button class="btn btn-info formSubmit" id="form2" type="button"><i class="icon-ok bigger-110"></i>提交</button>
										</div>
									</div>
								</form>
							</div>
                      </div>
                    </div>
                  </div>
                </section>
                </section>
<include file="Public:footer" />